import { TGuildElite } from "../../../../../../Message/Db/Tables/TGuildElite";
import { SkillConfig } from "../../../../resource/SkillConfig";
type int = number;
//class EliteTowerMapData
    
    export  class EliteTowerMapData extends TGuildElite
    {
        constructor()
        {
            super();
            this._bosses = [];
            this._rewardItems = [];
            this._showSkills = new Map<any, any> /* flash.utils.Dictionary */();
            return;
        }

        public initRewardItems(): void
        {
            return;
        }

        public getRewardItems(): Array<any>
        {
            return this._rewardItems;
        }

        public initShowSkills(): void
        {
            var loc2=null;
            var loc3=null;
            var loc4=null;
            var loc5=null;
            var loc6=0;
            this.initBosses();
            this._showSkills = new Map<any, any> /* flash.utils.Dictionary */();
            var loc1=this.showSkill ? this.showSkill.split("#") : [];
            loc6 = 0;
            while (loc6 < loc1.length) 
            {
                if (loc1[loc6] && !(loc1[loc6] == "") && loc6 < this._bosses.length) 
                {
                    this._showSkills[this._bosses[loc6]] = [];
                    loc2 = (loc1[loc6] as string).split("-");
                    var loc7=0;
                    var loc8=loc2;
                    for(loc4 of loc8) 
                    {
                        if (!(loc5 = SkillConfig.instance.getInfoByName(parseInt(loc4)))) 
                        {
                            continue;
                        }
                        (this._showSkills[this._bosses[loc6]] as Array<any>).push(loc5);
                    }
                }
                ++loc6;
            }
            return;
        }

        public initBosses(): void
        {
            this._bosses = this.targetBoss ? this.targetBoss.split("#") : [];
            return;
        }

        public getBosses(): Array<any>
        {
            return this._bosses;
        }

        public getShowSkillsByBoss(arg1: int): Array<any>
        {
            return this._showSkills[arg1] as Array<any>;
        }

        public /* var */completed: Boolean;

        /* internal */ /* var */_bosses: Array<any>;

        /* internal */ /* var */_rewardItems: Array<any>;

        /* internal */ /* var */_showSkills: Map<any, any> /* flash.utils.Dictionary */;
    }
